package com.hs.srm.admin.modules.notice.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.hs.srm.admin.modules.notice.entity.NoticeMessageEntity;

/**
 * 
 * 
 * @author wangpeidong
 * @email wangpdcn@163.com
 * @date 2018-06-28 21:37:31
 */
public interface NoticeMessageDao extends BaseMapper<NoticeMessageEntity> {

    List<NoticeMessageEntity> queryByCode(@Param("role") int role);

    int selectNowMsgState(@Param("id") Integer id);

    int updateMsgStateByType(@Param("id") Integer id, @Param("state") int state);

    int selectNowRmdState(@Param("id") Integer id);

    int updateRmdStateByType(@Param("id") Integer id, @Param("state") int state);

    NoticeMessageEntity selectStateByTemplateCode(@Param("templateCode") String templateCode);
}
